#include "morewindows.h"
#include "ui_morewindows.h"
#include <QDialog>

MoreWindows::MoreWindows(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MoreWindows)
{
    ui->setupUi(this);
    ui->pushButton->setText(tr("新窗口"));
}

MoreWindows::~MoreWindows()
{
    delete ui;
}

void MoreWindows::on_pushButton_clicked()
{
    QDialog *dlg = new QDialog(this);
    dlg->show();
}
